NexusPi Git Node
Commit 9b6c153c386526b3f1a714cab2fc2fa6f2d82ece
Parents : 6be112d
Author : James L <jrl290@gmail.com>
Date : 2026-04-28T14:11:44-04:00
Fix LoRa routing: MODE_FULL restores LoRa<->LocalTCP packet flow
LoRa interface was set to MODE_ACCESS_POINT which blocks all outbound
announce broadcasts, preventing LoRa devices from learning backbone
paths and vice versa. Switch to MODE_FULL so announces propagate freely
between LoRa, local TCP clients, and the backbone.
The boundary firewall (BOUNDARY_MODE inbound filter in Transport.cpp)
is independent of interface modes and continues to gate all backbone
(WAN) traffic using the local/mentioned address whitelists. LAN devices
(LoRa + local TCP) retain free reign; WAN traffic is filtered as before.
Also update local TCP server log/UI strings to reflect it already uses
MODE_GATEWAY (not MODE_ACCESS_POINT) as fixed in a prior commit.
Changes
2 files changed, 4 insertions(+), 4 deletions(-)
Diff
diff --git a/BoundaryConfig.h b/BoundaryConfig.h
index a70332f..1e23936 100755
--- a/BoundaryConfig.h
+++ b/BoundaryConfig.h
@@ -217,7 +217,7 @@ static void config_send_html() {
html += F(
"<h2>📡 Local TCP Server (optional)</h2>"
"<p class='note'>Run a TCP server on the same WiFi network so local devices can connect. "
- "Uses Access Point mode (does not forward announces).</p>"
+ "Uses Gateway mode (forwards announces to and from local TCP clients).</p>"
"<label>Local TCP Server</label>"
"<select name='ap_tcp_en'>"
);
diff --git a/RNode_Firmware.ino b/RNode_Firmware.ino
index f06908a..ba5d318 100755
--- a/RNode_Firmware.ino
+++ b/RNode_Firmware.ino
@@ -787,7 +787,7 @@ void setup() {
HEAD("Registering LoRA Interface...", RNS::LOG_TRACE);
lora_interface = new LoRaInterface();
- lora_interface.mode(RNS::Type::Interface::MODE_ACCESS_POINT);
+ lora_interface.mode(RNS::Type::Interface::MODE_FULL);
RNS::Transport::register_interface(lora_interface);
#ifdef BOUNDARY_MODE
@@ -960,7 +960,7 @@ void setup() {
#ifdef BOUNDARY_MODE
HEAD("*** BOUNDARY MODE ACTIVE ***", RNS::LOG_TRACE);
HEAD("RNS transport mode is ENABLED (boundary)", RNS::LOG_TRACE);
- HEAD("LoRa Interface: MODE_ACCESS_POINT", RNS::LOG_TRACE);
+ HEAD("LoRa Interface: MODE_FULL", RNS::LOG_TRACE);
{
char _bm_info[128];
if (boundary_state.tcp_mode == 1) {
@@ -971,7 +971,7 @@ void setup() {
HEAD("TCP Backbone: DISABLED", RNS::LOG_TRACE);
}
if (boundary_state.ap_tcp_enabled) {
- snprintf(_bm_info, sizeof(_bm_info), "Local TCP Server: port %d (MODE_ACCESS_POINT)",
+ snprintf(_bm_info, sizeof(_bm_info), "Local TCP Server: port %d (MODE_GATEWAY)",
boundary_state.ap_tcp_port);
HEAD(_bm_info, RNS::LOG_TRACE);
}
Served by rngit 1.5.0 - Generated in 0.02s